/**
 * @file  MiraConvert.h
 * @author Josep Sabater (jsabaterm@el.ub.edu)
 * @date   December, 2015
 * @version 1.0.0
 * @ingroup Util
 * @brief Interface for several conversion operations.
 *
 *
 */
#ifndef MIRA_CONVERT_H
#define MIRA_CONVERT_H

namespace MiraUtilUBLib {
   /**
    * @brief Template to translate enum class to an Integer value.
    */
   template <typename E>
   constexpr auto asInteger(E const e) -> typename std::underlying_type<E>::type{
       return static_cast<typename std::underlying_type<E>::type>(e);
   }
}

#endif
